<!DOCTYPE html>
<html>
    <head>
        <title>Openid Redirect</title>
        <meta name="robots" content="noindex, nofollow">
        <?php if($loginTokenSites):?>
        <?php foreach($loginTokenSites as $site):?>
        <script src="<?php echo $site?>"></script>    
        <?php endforeach?>
        <?php endif?> 

        <script type="text/javascript"> 
            if (window.opener) {
                window.close();
                window.opener.location = '<?php echo $url?>'
            }
            else {
                window.location = '<?php echo $url?>';
            }
        </script>
        <style>
            body{
                color: #333;
                text-align: center;
            }
            h1{
                font-size: 18px;
            }
            a{
                color: #428BCA;
                text-decoration: none;
            }  
            a:hover{
                text-decoration: underline;
            } 
        </style>
    </head>
    <body>
        <h1>Quay trở lại website ...</h1>
        <p>
            <a href="<?php echo $url; ?>">Click vào đây để quay trở lại website</a>
        </p>
    </body>
</html>
